package com.yxw.live_vod_backend_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品类目实体类 yx_product_category
 *
 * @author xiexuxin
 * @date 2023-12-06
 */
@Data
@TableName("yx_product_category")
@ApiModel("商品类目实体类")
public class YxProductCategoryEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "category_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty("类目id")
    private Long categoryId;

    @TableField("category_name")
    @ApiModelProperty("类目名称")
    private String categoryName;

    @TableField("is_enable")
    @ApiModelProperty("是否启用 0启用 1禁用")
    private Integer isEnable;

    @TableField("create_time")
    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @TableField("update_time")
    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

}
